com.atlassian.jira.rpc.soap.util
Class RemoteEntityFactoryImpl

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.util.RemoteEntityFactoryImpl
All Implemented Interfaces:
RemoteEntityFactory

public class RemoteEntityFactoryImpl
extends java.lang.Object
implements RemoteEntityFactory

Default implementation of the RemoteEntityFactory interface. Provides email address protection to prevent information leakage in RPC land.

Since:
v4.1

Field Summary
private  EmailFormatter emailFormatter
           
private  GroupManager groupManager
           
 
Constructor Summary
RemoteEntityFactoryImpl(EmailFormatter emailFormatter, GroupManager groupManager)
           
 
Method Summary
 RemoteGroup createGroup(Group group)
          Returns a RemoteGroup based on the OSUser implementation.
 RemoteUser createUser(User user)
          Returns a RemoteUser based on the OSUser implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emailFormatter

private final EmailFormatter emailFormatter

groupManager

private final GroupManager groupManager
Constructor Detail

RemoteEntityFactoryImpl

public RemoteEntityFactoryImpl(EmailFormatter emailFormatter,
                               GroupManager groupManager)
Method Detail

createUser

public RemoteUser createUser(User user)
Description copied from interface: RemoteEntityFactory
Returns a RemoteUser based on the OSUser implementation.

Specified by:
createUser in interface RemoteEntityFactory
Parameters:
user - real user; must not be null.
Returns:
a RemoteUser bean

createGroup

public RemoteGroup createGroup(Group group)
Description copied from interface: RemoteEntityFactory
Returns a RemoteGroup based on the OSUser implementation.

Specified by:
createGroup in interface RemoteEntityFactory
Parameters:
group - real group; must not be null.
Returns:
a RemoteGroup bean